//
//  QuestionStemView.m
//  JW_BasePorject
//
//  Created by JW on 2018/7/5.
//  Copyright © 2018年 JW. All rights reserved.
//

#import "QuestionStemView.h"

#import <DTCoreText/DTCoreText.h>
#import <DTFoundation/DTAnimatedGIF.h>

@interface QuestionStemView ()<DTAttributedTextContentViewDelegate,DTLazyImageViewDelegate>

@property (nonatomic,strong)UILabel *typeLabel;

@property (nonatomic, strong)DTAttributedLabel *setmLabel;


@end

@implementation QuestionStemView

- (instancetype)init {
    self = [super init];
    if (self) {
        [self initConfigureView];
    }
    return self;
}


- (void)initConfigureView{
    [self addSubview:self.typeLabel];
    
    
}


- (DTAttributedLabel *)setmLabel{
    if (_setmLabel == nil) {
        _setmLabel = [[DTAttributedLabel alloc] initWithFrame:CGRectZero];
        _setmLabel.delegate = self;
    }
    return _setmLabel;
}

- (UILabel *)typeLabel{
    if (_typeLabel == nil) {
        _typeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 80, 30)];
        _typeLabel.backgroundColor = [UIColor lightGrayColor];
        _typeLabel.textColor = [UIColor whiteColor];
        _typeLabel.textAlignment = NSTextAlignmentCenter;
        ViewRadius(_typeLabel, 15);
    }
    return _typeLabel;
}

@end
